package com.train.sentinel.sentinelHandler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import lombok.extern.slf4j.Slf4j;

import java.util.HashMap;
import java.util.Map;

@Slf4j
public class FallbackConfig {
    public static Map fallback(String p1){
        log.info("*************fallback***************");
        Map result = new HashMap<String,Object>();
        result.put("error:","400");
        result.put("fallback:","内部错误");
        return result;
    }
}
